/*
 * cconstants.c - Print common #defined constants used in C language
 * Copyright (c) 2010-2011 Rudá Moura <ruda.moura@gmail.com>
 */

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

int
main(void)
{
	puts("Constant,Value");
	printf("NULL,%p\n",NULL);
	printf("EOF,%d\n", EOF);
	printf("EXIT_SUCCESS,%d\n", EXIT_SUCCESS);
	printf("EXIT_FAILURE,%d\n", EXIT_FAILURE);
	printf("STDIN_FILENO,%d\n", STDIN_FILENO);
	printf("STDOUT_FILENO,%d\n", STDOUT_FILENO);
	printf("STDERR_FILENO,%d\n", STDERR_FILENO);
	printf("BUFSIZ,%d\n", BUFSIZ);
	printf("FOPEN_MAX,%d\n", FOPEN_MAX);
	printf("FILENAME_MAX,%d\n", FILENAME_MAX);
	printf("RAND_MAX,0x%x\n", RAND_MAX);
	return 0;
}
